﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>content</title>
<script type="text/javascript" src="${js_ctx }/option.js" ></script>
<link type="text/css" rel="stylesheet" href="${css_ctx }/main_style.css" />

<c:if test="${'0' eq  tstate || '2' eq rulesworklearn.swork.sdstate || '2' eq rulesworklearn.swork.ssstate}">
	<script type="text/javascript" src="${editor_ctx }/fckeditor.js"></script>
	<script type="text/javascript">
		window.onload = function()
		{
			var oFCKeditor = new FCKeditor( 'content' ) ;
			oFCKeditor.BasePath = "${ctx }/fckeditor/" ;
			oFCKeditor.Width = "100%";
			oFCKeditor.Height = "360";
			oFCKeditor.ReplaceTextarea() ;
		
		
		}
	</script>
</c:if>

</head>

<body class="content_bg"> 
<!-- 标题-->	
<div class="content_tittle">
${rulesworklearn.rule.rname}
</div>
<!-- 标题  end--> 
<!-- 提示信息 -->	
<c:if test="${!empty msg}">
	<div class="mag">提示信息：${msg}</div>
	<c:remove var="msg" scope="session"/>
</c:if>
<!-- 提示信息  end-->	

<div class="switch"><span><a onclick="switch1();" title="单击可合拢或展开"><img src="${img_ctx }/option_button.gif" width="17" height="12" /></a></span><div class="tittle">编制规则</div></div>
<div   class="clear opinions" >
<div class="kuang_bxyq" id="r_top">${rulesworklearn.rule.rtdbrule }</div>   
</div>
<div class="content">
  <div id="content_main">
    <div class="switch" style="margin-right:3px;"><span><a onclick="switch_cz();" title="单击可合拢或展开"><img src="${img_ctx }/option_button.gif" width="17" height="12" /></a></span><div class="tittle">本站编辑区</div></div>
    <div class="opinions"  style="margin-right:3px;">
    <!-- 车站制度的编辑区域 -->
    <c:if test="${ !('0' eq  tstate || '2' eq rulesworklearn.swork.sdstate || '2' eq rulesworklearn.swork.ssstate)}">
    <div id="con_cz" class="kuang_sh">
    	<font color=green>你已经提交了或者已经审核通过，暂时无法编辑。</font><br/>
	    ${rulesworklearn.swork.scontent}
	</div>
	</c:if>
	<c:if test="${'0' eq  tstate || '2' eq rulesworklearn.swork.sdstate || '2' eq rulesworklearn.swork.ssstate}">
	<div id="con_cz" style="padding: 5px;">
		<form action="${ctx }/sworks?cmd=update" method="post" name="form1">
			<input type="hidden" name="rid" value="${rulesworklearn.rule.rid }"/>
			<input type="hidden" name="tid" value="${sessionScope.manager.tid }"/>
			<input type="hidden" name="sid" value="${rulesworklearn.swork.sid }"/>
			<input type="hidden" name="action" value="scontent"/>
			<textarea id="content" name="scontent" >${rulesworklearn.swork.scontent}</textarea>
			<div class="button_l clear" style="display: none;">
				设置阅读时间：<input type="text" name="stime" value="${rulesworklearn.swork.stime}" style="width:30px;" />秒
				<input name="state" type="radio" value="0" <c:if test="${'0' eq rulesworklearn.swork.state}">checked="checked"</c:if> />以后提交 
				<input name="state" type="radio" value="1" <c:if test="${'1' eq rulesworklearn.swork.state}">checked="checked"</c:if> />现在提交
				
			</div>
			<div class="button_l clear">
				<input type="submit" value="保存" class="btn1_mouseout" onmouseover="this.className='btn1_mouseover'" onmouseout="this.className='btn1_mouseout'" />
			</div>
		</form>
	</div>
	</c:if> 
	
	<!-- 车站制度的编辑区域 end -->
	
    </div>
  </div>
  
  <div class="r"  id="content_main_r">
      <div class="switch"><span><a onclick="switch2();" title="单击可合拢或展开"><img src="${img_ctx }/option_button.gif" width="17" height="12" /></a></span><div class="tittle">参考规章文电</div></div>
      <div   class="clear opinions" >
   
        <!-- 车站参考章程编辑区域 -->
	    <div id="r_right" class="kuang_sh">
		    <c:if test="${empty rulesworklearn.swork.scommon}">
		 		<font color=red>参考规章文电未添加！</font>
			</c:if>
		   ${rulesworklearn.swork.scommon }
			
		</div>
		
		<!-- 车站参考章程编辑区域 end -->
		
      </div>
  </div>
</div>

<div class="switch clear"><span><a onclick="switch3(); "  title="单击可合拢或展开"><img src="${img_ctx }/option_button.gif" width="17" height="12" /></a></span><div class="tittle">审核组意见</div></div>
<div   class="clear opinions" >
  <div id="r_bottom" style="padding:5px;">
  	
    <!-- 审核意见-->
  	<c:if test="${empty rulesworklearn.swork.ssstate || (('0' eq  rulesworklearn.swork.state) and ('0' eq  rulesworklearn.swork.ssstate))}">
	  <font color=red>你还未添加或提交！</font>
	</c:if>
    <c:if test="${!(empty rulesworklearn.swork.ssstate || (('0' eq  rulesworklearn.swork.state) and ('0' eq  rulesworklearn.swork.ssstate)))}">
	  	<c:if test="${'0' eq  rulesworklearn.swork.ssstate}">
	  		<font color=red>审核组还未审核！</font>
	  	</c:if>
	  	<c:if test="${!('0' eq  rulesworklearn.swork.ssstate)}">
	  		<c:choose> 
		         <c:when test="${'2' eq  rulesworklearn.swork.ssstate}"> 
		             <font color=red>${rulesworklearn.swork.ssadvice } </font>
		         </c:when> 
		         <c:otherwise> 
		             ${rulesworklearn.swork.ssadvice }
		         </c:otherwise> 
		     </c:choose> 
	  		
	  		 <div class="button_l clear">
				当前状态：<c:if test="${'0' eq  rulesworklearn.swork.ssstate}">未审核</c:if>   
				<c:if test="${'1' eq  rulesworklearn.swork.ssstate}"><font color=green>已审核</font></c:if>  
				<c:if test="${'2' eq  rulesworklearn.swork.ssstate}"><font color=red>未通过 </font></c:if> 
			</div>
	  	</c:if>
	</c:if>
    <!-- 审核意见 end -->
  </div>
</div>

<div class="switch clear"><span><a onclick="switch4(); "  title="单击可合拢或展开"><img src="${img_ctx }/option_button.gif" width="17" height="12" /></a></span><div class="tittle">段长组意见</div></div>
<div   class="clear opinions" >
  <div id="r_bottom1" style="padding:5px;">
  	<!-- 段长组意见-->
  	<c:if test="${empty rulesworklearn.swork.sdstate || (('0' eq  rulesworklearn.swork.state) and ('0' eq  rulesworklearn.swork.sdstate))}">
	  <font color=red>你还未添加或提交！</font>
	</c:if>
    <c:if test="${!(empty rulesworklearn.swork.sdstate || (('0' eq  rulesworklearn.swork.state) and ('0' eq  rulesworklearn.swork.sdstate)))}">
	  	<c:if test="${'0' eq  rulesworklearn.swork.sdstate}">
	  		<font color=red>审核组还未审核！</font>
	  	</c:if>
	  	<c:if test="${!('0' eq  rulesworklearn.swork.sdstate)}">
	  		
	  		<c:choose> 
		         <c:when test="${'2' eq  rulesworklearn.swork.sdstate}"> 
		             <font color=red>${rulesworklearn.swork.sdadvice } </font>
		         </c:when> 
		         <c:otherwise> 
		             ${rulesworklearn.swork.sdadvice }
		         </c:otherwise> 
		     </c:choose>
	  		 <div class="button_l clear">
				当前状态：<c:if test="${empty rulesworklearn.swork.sdstate ||'0' eq  rulesworklearn.swork.sdstate}">未审核</c:if>   
				<c:if test="${'1' eq  rulesworklearn.swork.sdstate}"><font color=green>已审核</font></c:if>  
				<c:if test="${'2' eq  rulesworklearn.swork.sdstate}"><font color=red>未通过 </font></c:if> 
			</div>
	  	</c:if>
	</c:if>
    <!-- 段长组意见 end -->
  </div>
</div>
<div class="foot_content">
  <div class="foot_nav">
  <c:if test="${!(rulesworklearn.firstLast eq 'first')}">
	<a href="common?cmd=page&action=first&rid=${rulesworklearn.rule.rid}&tid=${sessionScope.manager.tid}">第一条</a>	
	<a href="common?cmd=page&action=top&rid=${rulesworklearn.rule.rid}&tid=${sessionScope.manager.tid}">上一条</a>
  </c:if>
  <c:if test="${!(rulesworklearn.firstLast eq 'last')}">
	<a href="common?cmd=page&action=down&rid=${rulesworklearn.rule.rid}&tid=${sessionScope.manager.tid}">下一条</a>
	<a href="common?cmd=page&action=last&rid=${rulesworklearn.rule.rid}&tid=${sessionScope.manager.tid}">最后一条</a>
  </c:if>
  </div>
  <%@ include file="../../common/footer.jsp"%>
</div>
</body>
</html>
